<?php
	require_once'p.config.php';
	$p = $_GET['p'];
	$u = $_SESSION['userinfo'];
	if(in_array($p,array('messages','mblogs','mforums','mwrite')))
	{
		include $p.".php";
		$file = $p.".html";
	}
	$file = $file ? $file : "intro.html";
	$h = date('H');
	$smarty->_assign(array('u','h','file'));
	$smarty->_display();
?>